package com.ctgu.server.dao.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotEmpty;

@Data
@NoArgsConstructor
@ApiModel(value = "UserUploadDto", description = "上传用户文件")
public class UserUploadDto {
    // 参数
    @NotEmpty(message = "用户Id不能为空")
    @ApiModelProperty(value = "用户openId")
    private String userId;
    // 文件
    @NotEmpty(message = "未获取上传文件")
    @ApiModelProperty(value = "MultipartFile")
    private MultipartFile file;

}
